#ifndef TCPSESSION_H
#define TCPSESSION_H
//#include <QObject>
//#include <QQueue>
//#include <QTcpSocket>
//#include <QHostAddress>

//#include <QtNetwork/QUdpSocket>
//#include <QtNetwork/QHostAddress>
//#include <QtNetwork/QNetworkInterface>
//#include <QtNetwork/QNetworkAddressEntry>
//#include <QtNetwork/QNetworkAccessManager>
//#include <QtNetwork/QNetworkRequest>
//#include <QtNetwork/QNetworkReply>

//class tcpSession
//{
//public:
//    tcpSession();

//    QQueue<QByteArray> tcpQueue;
//    void tcp_init();
//    void tcp_disconnect();
//    void tcp_write(QByteArray sMsg);
//private:
//    QTcpSocket *mTcpSocket = nullptr;
////TCP连接服务
//private slots:
//    void onConnected();
//    void onDisConnected();
//    void onStateChanged(QAbstractSocket::SocketState);
//    void onReadyRead();
//    void displayError(QAbstractSocket::SocketError socketError);
//};



#endif // TCPSESSION_H
